package net.protocol;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.ArrayList;

public interface Protocol {
	public Protocol create();
	public void sendPorts(OutputStream out, ArrayList<Integer> ports) throws IOException;
	public void sendPort(OutputStream out, Integer port) throws IOException;
	public void sendData(OutputStream out, Object data) throws IOException;
	
	public int recievePort(InputStream in) throws IOException;
	public ArrayList<Integer> recievePorts(InputStream in) throws IOException;
	public Object recieveData(InputStream in) throws IOException;
	
}
